class Photo < ActiveRecord::Base
  has_attachment :storage=>:file_system,
                   :resize_to=>'60x80',
                   :thumbnails=>{:thumb=>'160x120',:tiny=>'50>'},
                   :max_size=>5.megabytes,
                   :content_type=>:image,
                   :processor=>'Rmagick'
   validates_as_attachment
   belongs_to :user
end
